<!DOCTYPE html>
<html>
<head lang="zh">
    <meta charset="UTF-8">
    <!--#include virtual="/public/inc/head.html"-->
    <title>参数设置</title>
    <!--#include virtual="/public/inc/seajs.html" -->
    <link rel="stylesheet" type="text/css" href="/ydxs_static/public/css/css.css" />
    <link rel="stylesheet" type="text/css" href="/public/css/index.css" />
</head>
<body data-permission="all" >
    <!--#include virtual="/public/inc/top.html" -->
    <div class="container">
        <div class="wrap clearfix">
            <!--#include virtual="/static_public/public_menu/left_side/ydxs/side.html" -->
            <div class="content" ng-controller="ReportConfigController">
                <div class="toolbar f14 mt15">
                    <div class="toolbar-tab fl">
                        <ul>
                            <li style="padding: 0 20px; line-height: 40px;">编辑参数值【销售经理报表】</li>
                        </ul>
                    </div>
                    <!--
                    <a href="javascript:;" ng-click="goBack()" class="btn btn-yellow fr mt5 mr5">返回</a>
                    -->
                    <a href="/ydxs_static/page/statistical/report_form.html" class="btn btn-yellow fr mt5 mr5">返回</a>
                </div>
                <div class="tab f14 mt15 clearfix">
                    <ul>
                        <li ng-class="{'tab-on': current == 'yjkj'}" class="tab-on">
                            <a href="javascript:;" ng-click="changeTab('yjkj')">业绩口径</a>
                        </li>
                        <li ng-class="{'tab-on': current == 'rgkj'}">
                            <a href="javascript:;" ng-click="changeTab('rgkj')">认购口径</a>
                        </li>
                        <li ng-class="{'tab-on': current == 'qykj'}">
                            <a href="javascript:;" ng-click="changeTab('qykj')">签约口径</a>
                        </li>
                    </ul>
                    <div class="tab-bottom-line"></div>
                </div>
                <div ng-show="current == 'yjkj'">
                    <div class="table-header mt20 clearfix ng-scope">
                    <span class="orange-border fl"></span> <span class="fl lh30 f14">口径概述</span>
                    </div>
                    <div class="lh30">
                        <p>以认购算业绩：按照认购口径计算业绩。<br>
                        以签约算业绩：按照签约口径计算业绩。</p>
                    </div>         
                    <div class="clearfix mt15 relative instructions">
                        <a href="{{getConfigEffectUrl('yjkj')}}" target="_blank" class="c-blue fr">配置影响项说明</a>                 
                    </div>
                    <div class="mt30 clearfix">
                       <div class="radio fl mr30">
                           <input type="radio" name="" id="radio0" 
                               ng-checked="reportConfig.list['yjkj']['rg'] == 1">
                           <label for="radio0" ng-click="setSelect('yjkj','rg','qy')">以认购算业绩</label>
                       </div>  
                       <div class="radio fl">
                           <input type="radio" name="" id="radio1" 
                               ng-checked="reportConfig.list['yjkj']['qy'] == 1">
                           <label for="radio1" ng-click="setSelect('yjkj','qy','rg')">以签约算业绩</label>
                       </div>                  
                   </div>                         
                    <div class="mt30">
                        <span class="f14 mr30">公式：</span>
                        <span class="c-gray" ng-cloak>{{yjkjEquation}}</span>
                    </div>
                </div>
                <div ng-show="current == 'rgkj'" class="ng-hide">
                    <div class="table-header mt20 clearfix ng-scope">
                    <span class="orange-border fl"></span> <span class="fl lh30 f14">口径概述</span>
                    </div>
                    <div class="lh30">                                 
                        <p>
                            当期认购：在指定时间段内发生的激活的认购订单，以及关闭原因是转签约和退房的认购订单。<br>
                            当期认购+当期直签：在指定时间段内发生的激活的认购订单，以及关闭原因是转签约和退房的认购订单，加上直签的数量<br>
                            当期认购当期转签：在指定时间内发生的认购且在指定时间内转签约的订单。<br>
                            当期认购未转签当期退房：在指定时间内认购未转签且在该时间段内进行退房的订单。<br>
                            历史认购未转签当期退房：在指定时间段之前发生的认购未转签且在指定时间内进行退房的订单。<br>
                            当期转签当期退房：在指定时间段内完成转签约且退房的订单。<br>
                            当期直签当期退房：在指定时间段内完成直签且退房的订单。<br>
                        </p>
                    </div>
                    <div class="clearfix mt15 relative instructions">
                        <a href="javascript:;" class="c-blue fr" ng-mouseover="showOpts = true;" ng-mouseout="showOpts = false;">操作说明</a>                  
                        <a href="{{getConfigEffectUrl('rgkj')}}" target="_blank" class="c-blue fr mr30">配置影响项说明</a>
                        <div class="tip-layer" ng-show="showOpts">
                            <i class="tip-top-icon tj-icon"></i>
                            <p>1. 【计入当期认购总数统计】的选项只能二选一，必选一个。</p>
                            <p>2. 【认购总数结果需要扣减】如果勾选则在公式中自动执行  - 【选项】的操作。</p>
                            <p>3.  再点一次已勾选的则去掉勾选，并在公式中删除。 </p>
                        </div>
                    </div>
                    <div class="clearifx lh30 f16 mt20">
                        <span class="orange">计入当期认购总数统计：</span>
                    </div>
                    <div class="mt20 clearfix">
                       <div class="radio fl mr30">
                           <input type="radio" name="" id="radio3" 
                               ng-checked="reportConfig.list['rgkj']['dqrg'] == 1 && reportConfig.list['rgkj']['dqzq'] == 0">
                           <label for="radio3" ng-click="setRgkj(1,0)">当期认购</label>
                       </div>  
                       <div class="radio fl">
                           <input type="radio" name="" id="radio4"
                               ng-checked="reportConfig.list['rgkj']['dqrg'] == 1 && reportConfig.list['rgkj']['dqzq'] == 1">
                           <label for="radio4"  ng-click="setRgkj(1,1)">当期认购 + 当期直签</label>
                       </div>                  
                   </div>   
                    <div class="clearifx lh30 f16 mt20">
                        <span class="orange">认购总数需要扣减：</span>
                    </div>
                    <div class="clearfix mt20">
                        <ul class="para-list clearfix pl10">
                            <li ng-class="{'current': reportConfig.list['rgkj'][item] == '1'}"
                                ng-click="toggleSelect('rgkj',item)"
                                ng-show="getItemDisplay('rgkj',item)"
                                ng-repeat="item in itemConfig.rgkj.minus">
                                <div class="text-hides">{{reportConfig.config[item]}}</div>
                                <i class="ui-icon arrow-select"></i> 
                            </li>                         
                        </ul>
                    </div>              
                    <div class="mt30">
                        <span class="f14 mr30">公式：</span>
                        <span class="c-gray">{{rgkjEquation}}</span>
                    </div>
                </div>
                <div ng-show="current == 'qykj'" class="ng-hide">
                    <div class="table-header mt20 clearfix ng-scope">
                    <span class="orange-border fl"></span> <span class="fl lh30 f14">口径概述</span>
                    </div>
                    <div class="lh30">
                        <p>
                            当期签约（包含直签和转签）：在指定时间内激活的直签和转签单，以及关闭状态为退房的签约单。<br>
                            当期签约（包含直签和转签）当期退房：在指定时间内发生的签约（含直签和转签）并最终退房了的。<br>
                            历史签约（包含直签和转签）当期退房：在指定时间之前发生的签约（含直签和转签），并在指定时间内退房的。<br>
                        </p>
                    </div>
                    <div class="clearfix mt15 relative instructions">
                        <a href="javascript:;" class="c-blue fr" ng-mouseover="showOpts = true;" ng-mouseout="showOpts = false;">操作说明</a>              
                        <a href="{{getConfigEffectUrl('rgkj')}}" target="_blank" class="c-blue fr mr30">配置影响项说明</a>
                        <div class="tip-layer" ng-show="showOpts">
                            <i class="tip-top-icon tj-icon"></i>
                            <p>1. 【签约总数结果需要扣减】如果勾选则在公式中自动执行  - 【选项】的操作。</p>
                            <p>2. 再点一次已勾选的则去掉勾选，并在公式中删除。 </p>
                        </div>
                    </div>
                    <div class="clearifx lh30 f16 mt20">
                        <span class="orange">计入当期签约总数统计：</span>
                    </div>
                    <div class="clearfix mt20">
                        <ul class="para-list clearfix pl10">
                            <li ng-class="{'current': reportConfig.list['qykj'][item] == '1'}"
                                ng-click="toggleSelect('qykj',item)"
                                 ng-repeat="item in itemConfig.qykj.plus">
                                <div class="text-hides">{{reportConfig.config[item]}}</div>
                                <i class="ui-icon arrow-select"></i> 
                            </li> 
                        </ul>
                    </div>
                    <div class="clearifx lh30 f16 mt20">
                        <span class="orange">签约总数需要扣减:</span>
                    </div>
                    <div class="clearfix mt20">
                        <ul class="para-list clearfix pl10">
                            <li ng-class="{'current': reportConfig.list['qykj'][item] == '1'}"
                                ng-click="toggleSelect('qykj',item)"
                                 ng-repeat="item in itemConfig.qykj.minus">
                                <div class="text-hides">{{reportConfig.config[item]}}</div>
                                <i class="ui-icon arrow-select"></i> 
                            </li> 
                        </ul>
                    </div>
                    <div class="mt30">
                        <span class="f14 mr30">公式：</span>
                        <span class="c-gray">{{qykjEquation}}</span>
                    </div>
                </div>
                <div class="clearfix mt50">
                    <a href="javascript:;" ng-click="updateConfig()" class="btn fr">保存</a>
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        seajs.use('/ydxs_static/public/js/service/init_settings/parameter');
    </script>
</body>

</html>